package org.yanfengying.utils.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BastQuery {
    //分页查询->高级查询
    private Integer page;
    private Integer pageSize;

    //获取起始条数
    public Integer getStart(){
        return (this.page-1)*pageSize;
    }
}
